EC_ReadModuleInfo

Function block EC_ReadModuleInfo
Reads a module's information returned by the EtherCAT master.
VAR_IN_OUT
V ModuleIn IO_REF Reference to the module.
VAR_INPUT
V Enable BOOL Gets the value of the parameter continuously while enabled.
VAR_OUTPUT
V Valid BOOL TRUE if a valid set of outputs is available.
V Error BOOL Signals that an error has occurred within the function block.
V ErrorID MC_Error Error identification.
V VendorId UDINT Vendor ID of the device.
V ProductCode UDINT Product code of the device.
V RevisionNumber UDINT Revision number of the device.
V SerialNumber UDINT Serial number of the device.
V SlaveId UINT The index of a slave array used for SDO functions. When EtherCAT is started, this index has the same value as the SlaveId, which corresponds to the position of the slave in the network. Please note that after EtherCAT is started in the Operational (Op) state, any addition or removal of slaves from the network will change the position of the slaves in the network (SlaveId). Nevertheless, the index of the slave will remain the same. Newly added devices will be added in the back of the slave array. For all slaves after the change, the index and SlaveId will no longer match. This behavior is only available for physical devices; simulated devices are inapplicable. Please refer to the use cases in EnableHotConnect for more details.
V PhysAddress UINT Physical address of the device.
V AliasAddress UINT Alias address of the device.
V State EC_State The EtherCAT state of the device.
V CycleTime UDINT The cycle time for a slave. If the slaves on the KINGSTAR Fieldbus network can't catch up the cycle time of the master, KINGSTAR auto-configuration will slow down their cycle time based on their capabilities.
V InputLength UDINT Length in bits of the device input buffer.
V OutputLength UDINT Length in bits of the device output buffer.
V Name STRING The name of the device.

 

  EC_ReadModuleInfo  
IO_REF   ModuleIn   Module   IO_REF
BOOL   Enable   Valid   BOOL
        Error   BOOL
        ErrorID   MC_Error
        VendorId   UDINT
        ProductCode   UDINT
        RevisionNumber   UDINT
        SerialNumber   UDINT
        SlaveId   UINT
        PhysAddress   UINT
        AliasAddress   UINT
        State   EC_State
        CycleTime   UDINT
        InputLength   UDINT
        OutputLength   UDINT
        Name   STRING